#include <bits/stdc++.h>
using namespace std;

int main() {
	char tar[9] = "chuanzhi";
	char read[500000] = {0};
	cin >> read;
	int i = 0;
	int ans = 0;
	while (read[i] != '\0') {
		++i;
	}
	for (int j = 0; j < i - 7; ++j) {
		if (read[j] == tar[0]) {
			if (read[j + 1] == tar[1]) {
				if (read[j + 2] == tar[2]) {
					if (read[j + 3] == tar[3]) {
						if (read[j + 4] == tar[4]) {
							if (read[j + 5] == tar[5]) {
								if (read[j + 6] == tar[6]) {
									if (read[j + 7] == tar[7]) {
										ans++;
									}
								}
							}
						}
					}
				}
			}
		}
	}
	cout << ans;
	return 0;
}